package com.lifl.b328.garden.model;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;


public class PhotoContent implements Content {

	private static final long serialVersionUID = 2063584012741123024L;
	protected String contenu;
	
	public PhotoContent(String contenu) {
		this.contenu = contenu;
	}

	public Bitmap getImage(){
		Bitmap bitmap = BitmapFactory.decodeFile(contenu);
		return bitmap;
	}
	
	public String getUrl(){
		return this.contenu;
	}
	
}
